<script setup lang="ts">
import { useAppStore } from '@/store';

interface IProps {
  path?: string;
}

const props = defineProps<IProps>();
const store = useAppStore();
</script>

<template>
  <view class="w-[100vw] bg-[white] flex justify-center items-center flex-wrap flex-content-center" :style="{ height: `calc(100vh - ${store.$state.tabbarHeight}px)` }">
    <van-empty description="请先登录" />
    <navigator :url="`/subcontract/person/login/index?path=${props.path ? encodeURIComponent(props.path) : '/pages/home/index'}`" class="w-[80vw] flex justify-center mt-[10%]">
      <van-button type="primary" :color="'#ffc300'" block class="w-[100%]"> 去登录 </van-button>
    </navigator>
  </view>
</template>
